package com.spring.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 组件注解
 *
 * @author kylin
 */
@Retention(RetentionPolicy.RUNTIME)
//该注解只能标在类上
@Target(ElementType.TYPE)
public @interface Component {

    /**
     * 组件名
     * @return
     */
    String value() default "";
}
